package com.zhentao.service.impl;

import com.zhentao.service.SkService;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

/**
 * @Date 2024/4/9 14:56
 * @Author xdm
 **/
@Service
public class SkServiceImpl implements SkService {

    @Trace
    @Tags(
            {
                @Tag(key = "testTrace", value = "returnedObj"),
                @Tag(key = "param", value = "arg[0]")
             }
    )
    @Override
    public String testTrace() {
        System.out.println("这个实现类");
        return "实现类";
    }
}
